﻿var options_db = {
	fileName: "db_smist_base",
	version: "",
	displayName: "DB SMIST BASE",
	maxSize: 1024*1000
};

// Creamos las Bases de Datos
if ( window.openDatabase ) {
	
    //var db   = window.openDatabase( options_db.fileName, options_db.version, options_db.displayName, options_db.maxize );
    var db   = window.openDatabase( "db_smist_movil", "", "DB SMIST MOVIL", 1024*1000 );
    
    //alert("db: " + db);
    /*
    var db_smist_base 	= window.openDatabase( options_db_smist_base.fileName, options_db_smist_base.version, options_db_smist_base.displayName, options_db_smist_base.maxize );
	
	var db_smist 		= window.openDatabase( options_db_smist.fileName, options_db_smist.version, options_db_smist.displayName, options_db_smist.maxize );
	
	var db_global 		= window.openDatabase( options_db_global.fileName, options_db_global.version, options_db_global.displayName, options_db_global.maxize );
	*/
    /*var db_smist        = window.openDatabase( "db_smist", "", "DB SMIST", 1024*1000 );
    alert("db_smist: " + db_smist);
    
    var db_smist_base   = window.openDatabase( "db_smist_base", "", "DB SMIST BASE", 1024*1000 );
    alert("db_smist_base: " + db_smist_base);
    
    
    var db_global       = window.openDatabase( "db_global", "", "DB GLOBAL", 1024*1000 );
    alert("db_global: " + db_global);
    
	sessionStorage["db_smist_base"] = db_smist_base;
	sessionStorage["db_smist"] 		= db_smist;
	sessionStorage["db_global"] 	= db_global;*/
} else {
	alert("Bases de Datos Locales no soportadas");
}